package cn.mdmbct.douyin.data.response.item;

import cn.mdmbct.douyin.common.response.DefaultResponseData;
import cn.mdmbct.douyin.common.response.OpenApiResponse;
import cn.mdmbct.douyin.common.response.ResponseExtra;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 获取视频点赞数据返回
 *
 * @author mdmbct  mdmbct@outlook.com
 * @date 2021/4/18 15:46
 * @modified mdmbct
 * @since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DataItemLikeRes implements OpenApiResponse {


    private ResponseExtra extra;

    private DataItemLikeResData data;


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = true)
    public static class DataItemLikeResData extends DefaultResponseData {

        private static final long serialVersionUID = -4914996615499015101L;

        @JSONField(name = "result_list")
        private List<LikeCount> resultList;

    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class LikeCount implements Serializable {

        private static final long serialVersionUID = -1428735284633972743L;

        private String date;

        private long like;
    }
}
